<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Bank extends Model
{
    // protected $fillable = ['name'];
    use HasFactory;

    protected $fillable = ['name', 'rate', 'max_loan', 'min_down_payment', 'max_term', 'calculators'];

    public function calculators() {
        return $this->hasMany(Calculator::class);
    }
}
